package com.xframe.domain.e3sp.basedata;

import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.*;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description: 互换码
 * @ClassName: com.xframe.domain.e3sp.basedata.SwitchCode
 * @Author: xufeng
 * @CreateTime: 2023/11/27
 **/
@Data
@XTable(value = "p_t02_switch_code", label = "互换码")
@XSelectItem(keyName = "switchCodeId",codeName = "switchCodeCode",textName = "nameCn")
@XSelectItem(keyName = "switchCodeId",codeName = "switchCodeCode",textName = "nameEn",language = "en")
public class SwitchCode extends BaseModel {
    /**
     * 互换码ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "switch_code_id", primaryKeyFlag = true,desc = "互换码ID")
    private Long switchCodeId;

    /**
     * 互换码编码 SUPPLIER LIST QUERY
     */
    @XQueryCondition
    @XGridTableRef
    @XColumn(name = "switch_code_code", uniqueFlag = true,desc = "互换码编码",length = 200)
    private String switchCodeCode;


    /**
     * 中文名称
     */
    @XQueryCondition
    @XGridTableRef
    @XColumn(name = "name_cn",desc = "中文名称",length = 200)
    private String nameCn;

    /**
     * 英文名称
     */
    @XQueryCondition
    @XColumn(name = "name_en",desc = "英文名称",length = 200 ,nullFlag = true)
    private String nameEn;

    /**
     * 备注
     */
    @XColumn(name = "remark",desc = "备注",length = 500,nullFlag = true)
    private String remark;



}
